<?php if(!$feed): ?>
  <p>No activity.</p>
<?php else: ?>
  <?php foreach($feed as $date=>$day): ?>
    <h2><?php echo $date ?></h2>
    <ol>
      <?php foreach ($day as $post): ?>
        <li>
          <?php echo just_time($post->time) ?>: 
          <strong><?php echo $post->name ?></strong> on 
          <?php echo getLink($post->thread->name,"threads/show/".$post->thread->id."#post-$post->id") ?> 
          <blockquote><em><?php echo limit_string($post->body,5) ?></em></blockquote>
        </li>
      <?php endforeach ?>
    </ol>
  <?php endforeach ?>
<?php endif ?>